package org.playground.booking.dto;

import org.playground.booking.entity.Playground;
import org.playground.booking.entity.PlaygroundType;

import java.util.ArrayList;
import java.util.List;

public class SportDto {
    private int sportId;
    private String zhName;
    private String enName;
    private List<Playground> playgrounds;


    public SportDto(){}

    public SportDto(PlaygroundType pgt,boolean includPlaygrounds){

        this.setSportId(pgt.getId());
        this.setEnName(pgt.getTranslation());
        this.setZhName(pgt.getPlaygroundType());
        this.playgrounds = new ArrayList<Playground>();
    }


    public int getSportId() {
        return sportId;
    }

    public void setSportId(int sportId) {
        this.sportId = sportId;
    }

    public String getZhName() {
        return zhName;
    }

    public void setZhName(String zhName) {
        this.zhName = zhName;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public List<Playground> getPlaygrounds() {
        return playgrounds;
    }

    public void setPlaygrounds(List<Playground> playgrounds) {
        this.playgrounds = playgrounds;
    }
}
